<div class="contextual">
    <?php echo CHtml::link(Yii::t('projects','New project'),'projects/new',array('class'=>'icon icon-add')); ?>
</div>

<h2><?php echo Yii::t('admin','Projects'); ?></h2>

<?php $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sidebar')); ?>

    <h3><?php echo Yii::t('app','Administration'); ?></h3>
    <?php $this->renderPartial('_admin_menu');?>
    
<?php $this->endWidget() ;?>

    <fieldset><legend><?php echo Yii::t('app','Filters'); ?></legend>
    <?php echo CHtml::beginForm('/admin/projects','get'); ?>
    <?php echo CHtml::activeLabelEx($model,'status'); ?>
    <?php echo CHtml::dropdownList('status', '1', array(''=>Yii::t('projects','all'), '1'=>Yii::t('projects','active'))); ?>
    <?php echo CHtml::activeLabelEx($model,'name'); ?>
    <?php echo CHtml::activeTextField($model,'name',array('size'=>'30')); ?>
    <?php echo CHtml::submitButton(Yii::t('app','Apply')); ?>
    <?php echo CHtml::endForm(); ?>
    <?php echo CHtml::link(Yii::t('projects','Clear'),'admin/projects',array('class'=>'icon icon-reload')); ?>
    </fieldset>
    
    <div class='autoscroll'>
<?php $this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$model->search(),
    'columns'=>array(
        'name',
        'is_public',
        'created_on'
    ),
    'itemsCssClass'=>'list',
)); ?>
    </div>